package edu.study.user.api.req.user;

import javax.validation.constraints.NotNull;

import edu.study.api.common.dto.BaseReqDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
@ApiModel("新增用户")
public class AddUserReq extends BaseReqDto {

    /**
	 *
	 */
	private static final long serialVersionUID = -731538599642082271L;
	
	@ApiModelProperty(value = "用户名", example = "", required = true)
	@NotNull(message = "用户名不能为空")
    private String userName;
	
	@ApiModelProperty(value = "登录名", example = "", required = true)
    @NotNull(message = "登录名不能为空")
    private String loginName;
	
	@ApiModelProperty(value = "部门编号", example = "", required = true)
	@NotNull(message = "部门编号不能为空")
    private String departmentNo;
	
	@ApiModelProperty(value = "部门用户编号(如学号)", example = "", required = false)
    private String departmentUserNo;
	
	@ApiModelProperty(value = "角色编号", example = "", required = true)
	@NotNull(message = "角色编号不能为空")
    private String roleNo;
}
